{% extends "base.html" %}

{% block title %} {{entry.title|escape}} - {{blog.title|escape}} {% endblock %}

{% block head_block %}

{% if entry %}
{%if entry.strtags%}<meta name="Keywords" content="{{entry.strtags|escape}}" />{%endif%}
{%if entry.excerpt%} <meta name="Description" content="{{entry.excerpt|escape}}" />{%endif%}
{% endif %}

{% endblock %}


{% block content %}


	<div id="main">
		<div id="maincontent"><div class="forFlow">
		{% if entry %}
		  <div class="navigation">
				{%for prev in entry.prev%}
					<span class="previous"><a href="/{{prev.link}}">{{prev.title}}</a></span>
				{%endfor%}
				{%for next in entry.next%}
					<span class="next"><a href="/{{next.link}}">{{next.title}}</a></span>
				{%endfor%}
			</div>
			<div class="post" id="post-{{entry.key}}">
				<h2 class="post-title"><a href="/{{entry.link|escape}}" rel="bookmark" title="{{ entry.title|escape }}">{{ entry.title|escape }}</a></h2>
				<div class="postmetadata-top">
					<span class="post-comments"><a href="/{{entry.link|escape}}#comments">{{entry.commentcount}} 条评论</a></span>
					<span class="post-date">{{entry.date|datetz:"Y/m/d H:i"}}</span>
					<span class="post-views"><a href="/{{entry.link|escape}}">{{entry.readtimes}} 次阅读</a></span>
				</div>
				<div class="entry">
<p style="float: right;margin: 4px;"><script type="text/JavaScript"> 
alimama_pid="mm_10694687_741014_2573998"; 
alimama_titlecolor="0000FF"; 
alimama_descolor ="000000"; 
alimama_bgcolor="FFFFFF"; 
alimama_bordercolor="E6E6E6"; 
alimama_linkcolor="008000"; 
alimama_bottomcolor="FFFFFF"; 
alimama_anglesize="0"; 
alimama_bgpic="0"; 
alimama_icon="0"; 
alimama_sizecode="41"; 
alimama_width=120; 
alimama_height=60; 
alimama_type=2; 
</script> 
<script src="http://a.alimama.cn/inf.js" type=text/javascript> 
</script></p>
					{{ entry.content }}
<p align="center"><script type="text/JavaScript"> 
alimama_pid="mm_10694687_741014_1441006"; 
alimama_titlecolor="0000FF"; 
alimama_descolor ="000000"; 
alimama_bgcolor="FFFFFF"; 
alimama_bordercolor="E6E6E6"; 
alimama_linkcolor="008000"; 
alimama_bottomcolor="FFFFFF"; 
alimama_anglesize="0"; 
alimama_bgpic="0"; 
alimama_icon="0"; 
alimama_sizecode="12"; 
alimama_width=468; 
alimama_height=60; 
alimama_type=2; 
</script><script src="http://a.alimama.cn/inf.js" type=text/javascript> 
</script></p>
					<p><b>转载请注明：来自</b><a href="{{blog.baseurl}}" title="{{blog.title|escape}}">{{blog.title|escape}}</a>
					<br/><b>本文地址：</b><a href="{{blog.baseurl}}/{{entry.link|escape}}" title="{{ entry.title|escape }}">{{blog.baseurl}}/{{entry.link|escape}}</a></p>
				</div>
				<div class="postmetadata">
					<span class="post-cat">分类:
						{%for cate in entry.categories%} <a href="/category/{{cate.slug}}">{{cate.name}}</a> {%endfor%}
					</span>

					{% if entry.tags%}
					<span class="post-tag">标签:
						{%for tag in entry.tags%}
							<a href="/tag/{{tag|urlencode}}">{{tag}}</a>&nbsp;{%endfor%}</span>
					{%endif%}
				</div>
			</div>
      <div class="navigation">
				{%for prev in entry.prev%}
					<span class="previous"><a href="/{{prev.link}}">{{prev.title}}</a></span>
				{%endfor%}
				{%for next in entry.next%}
					<span class="next"><a href="/{{next.link}}">{{next.title}}</a></span>
				{%endfor%}
			</div>
			{% if relateposts %}
      <div class="related">
				<h4>相关文章</h4>
				<ul>
				{%for post in relateposts%}
					<li><a href="/{{post.link|escape}}">{{post.title|escape}}</a> - {{post.date|datetz:"Y/m/d"}}</li>
				{%endfor%}
				</ul>
			</div>
		  {% endif %}
			<script type="text/javascript">
         var wumiiPermaLink = ""; //请用代码生成文章永久的链接 
         var wumiiTitle = ""; //请用代码生成文章标题 
         var wumiiTags = ""; //请用代码生成文章标签，以英文逗号分隔，如："标签1,标签2"
         var wumiiSitePrefix = "http://blog.chaoskey.com/";
      </script>
      <script type="text/javascript" id="wumiiRelatedItems" src="http://widget.wumii.com/ext/relatedItemsWidget.htm?type=1&amp;mode=3&amp;num=5"></script>
      <a href="http://www.wumii.com/widget/relatedItems.htm" style="border:0;">
         <img src="http://static.wumii.com/images/pixel.png" alt="无觅相关文章插件" style="border:0;padding:0;margin:0;" />
      </a>
		{% include "comments.html" %}
		
		{% else %}
			<h2 class="center">Not Found</h2>
			<p class="center">不好意思，您所查看的内容不再这里，您可以通过侧栏搜索工具查一下。</p>
		{% endif %}
		
		</div></div>
		
		{% include "sidebar.html" %}
	</div>
{% endblock %}
